package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface OrderService {
    Result order(Map map) throws Exception;

    Map findById(Integer id) throws Exception;

    PageResult findPage(QueryPageBean queryPageBean);

    Result add(Map map, Integer setmealId) throws Exception;

    void deleteById(Integer id);

    Map findByOrderId(Integer id);

    void changeStatus(Map<String,Object> map);

    Setmeal findSetmealById(Integer id);

    void update(Map map, Integer setmealId) throws Exception;


    List<Integer> findtoOrderStatus(ArrayList<String> dayList);

    List<Integer> findtoOrderList(ArrayList<String> dayList);

    /**
     * 修改到诊状态
     * @param order
     */
    void statusEdit(Order order);

    List<Map<String, Object>> findHistoryRecord(String telephone, String startDate, String endDate);

    Map<String,Object> getRecordDetails(Integer id);
}
